﻿<%@ Page Title="Carga Stock SAP" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true" CodeBehind="wFrmCargaStockSap.aspx.cs" Inherits="Crosland.Automotriz.Web.SSIS.wFrmCargaStockSap" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxUploadControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>

<%@ Register Src="~/UserControl/UploadControl.ascx" TagName="UploadControl" TagPrefix="ucUpload" %>

<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
<script type="text/javascript">

    function ShowPopupPopupFormarto() {
        PopupFormarto.Show();
    }

    function ShowPopupPopupSeleccione() {
        PopupSeleccione.Show();
    }

    function MostrarMensaje() {
        popupMensaje.Show();
    }

    function MensajeSatisfactorio() {
        alert('Paquete ejecutado satisfactoriamente.');
    }
    function MensajeFallido() {
        alert('Paquete ejecutado con errores.');
    }

</script>

<script type="text/javascript">
        // <![CDATA[
    var fileNumber = 0;
    var fileName = "";
    var startDate = null;
    function Uploader_OnFileUploadStart() {
        startDate = new Date();
        ClearProgressInfo();

        pcProgress.Show();
    }
    function Uploader_OnFileUploadComplete(e) {
        if (e.callbackData != "")
            AddFileToContainer(e.callbackData);
    }
    function Uploader_OnFilesUploadComplete(e) {
        UpdateUploadButton();
        pcProgress.Hide();
        MostrarDatos();
    }
    function MostrarDatos() {
        btnVerDetalle.DoClick();
    }
    function UpdateUploadButton() {


    }
    // Progress Dialog

    function SetCurrentFileUploadingProgress(fileName, uploadedLength, fileLength) {
        lblFileName.SetText("Current File Progress: " + fileName);
        lblFileName.GetMainElement().title = fileName;
        lblCurrentUploadedFileLength.SetText(GetContentLengthString(uploadedLength) + " / " + GetContentLengthString(fileLength));
    }
    function SetTotalUploadingProgress(number, count, uploadedLength, totalLength) {
        lblUploadedFiles.SetText("Total Progress: " + number + ' of ' + count + " file(s)");
        lblUploadedFileLength.SetText(GetContentLengthString(uploadedLength) + " / " + GetContentLengthString(totalLength));
    }
    function ProgressChanged(args) {
        if (!pcProgress.IsVisible())
            return;
        if (args.currentFileName != fileName) {
            fileName = args.currentFileName;
            fileNumber++;
        }
        SetCurrentFileUploadingProgress(args.currentFileName, args.currentFileUploadedContentLength, args.currentFileContentLength);
        progress1.SetPosition(args.currentFileProgress);
        SetTotalUploadingProgress(fileNumber, args.fileCount, args.uploadedContentLength, args.totalContentLength);
        progress2.SetPosition(args.progress);
        UpdateProgressStatus(args.uploadedContentLength, args.totalContentLength);
    }
    function ClearProgressInfo() {
        SetCurrentFileUploadingProgress("", 0, 0);
        progress1.SetPosition(0);
        SetTotalUploadingProgress(0, 0, 0, 0);
        progress2.SetPosition(0);
        lblProgressStatus.SetText('Elapsed time: 00:00:00 &ensp; Estimated time: 00:00:00 &ensp; Speed: ' + GetContentLengthString(0) + '/s');
        fileNumber = 0;
        fileName = "";
    }
    function UpdateProgressStatus(uploadedLength, totalLength) {
        var currentDate = new Date();
        var elapsedDateMilliseconds = currentDate - startDate;
        var speed = uploadedLength / (elapsedDateMilliseconds / 1000);
        var elapsedDate = new Date(elapsedDateMilliseconds);
        var elapsedTime = GetTimeString(elapsedDate);
        var estimatedMilliseconds = Math.floor((totalLength - uploadedLength) / speed) * 1000;
        var estimatedDate = new Date(estimatedMilliseconds);
        var estimatedTime = GetTimeString(estimatedDate);
        var speed = uploadedLength / (elapsedDateMilliseconds / 1000);
        lblProgressStatus.SetText('Elapsed time: ' + elapsedTime + ' &ensp; Estimated time: ' + estimatedTime + ' &ensp; Speed: ' + GetContentLengthString(speed) + '/s');
    }
    function GetContentLengthString(contentLength) {
        var sizeDimensions = ['bytes', 'KB', 'MB', 'GB', 'TB'];
        var index = 0;
        var length = contentLength;
        var postfix = sizeDimensions[index];
        while (length > 1024) {
            length = length / 1024;
            postfix = sizeDimensions[++index];
        }
        var numberRegExpPattern = /[-+]?[0-9]*(?:\.|\,)[0-9]{0,2}|[0-9]{0,2}/;
        var results = numberRegExpPattern.exec(length);
        length = results ? results[0] : Math.floor(length);
        return length.toString() + ' ' + postfix;
    }
    function GetTimeString(date) {
        var timeRegExpPattern = /\d{1,2}:\d{1,2}:\d{1,2}/;
        var results = timeRegExpPattern.exec(date.toUTCString());
        return results ? results[0] : "00:00:00";
    }
        // ]]>
    </script>
     


    <div class="main-header" style="width:100%;">
    <div class="main-titulo">Carga Stock SAP</div>
    </div>

    <div class="content-form">

    <asp:UpdatePanel ID="upBotones" runat="server">
    <ContentTemplate>

        <table style="width: 338px; height: 70px;">
            <tr>
            <td colspan="3">
                <strong>
                <asp:Label ID="Label1" runat="server" 
                    Text="Cargue archivos excel formato 2007"></asp:Label>
                </strong>
            </td>
            </tr>
    
            <tr>
            <td style="height: 9px" colspan="3">
            </td>
            </tr>
    
    
    
            <tr>
            <td>
                
                <dx:ASPxButton ID="btnImportarExcel" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" HorizontalAlign="Center" ImageSpacing="2px" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Text="Importar Excel" Width="140px" AutoPostBack="False">
                    <clientsideevents click="function(s, e) {
pcCargarExcel.Show();
}" />
                    <image url="~/Images/excel16.gif">
                    </image>
                </dx:ASPxButton>
                
            </td>
                <td>
                    <dx:ASPxButton ID="btnEjecutarPaquete" runat="server" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" HorizontalAlign="Center" ImageSpacing="2px" 
                        onclick="btnEjecutarPaquete_Click" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                        Text="Actualizar Kardex" Width="160px">
                        <image url="~/Images/database_refresh.png">
                        </image>
                    </dx:ASPxButton>
                </td>
                <td>
                    <dx:ASPxButton ID="btnSalir" runat="server" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" HorizontalAlign="Center" ImageSpacing="2px" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Salir" 
                        Width="100px" onclick="btnSalir_Click">
                        <image url="~/Images/logout.png">
                        </image>
                    </dx:ASPxButton>
                </td>
            </tr>
   
            
    
    </table>
     </ContentTemplate>
    </asp:UpdatePanel>
    <table>
            <tr>
            <td>
              
              
              <asp:UpdatePanel ID="UpdatePanel1" runat="server">
               
               <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
                </Triggers>
                    <ContentTemplate>
                   
                        <strong>
                                <asp:Label ID="lblStatus" runat="server" style="color: #FF0000" 
                            Visible="False"></asp:Label>
                        &nbsp;</strong><asp:Image ID="Image1" runat="server" ImageUrl="~/Images/loading.gif" 
                                        Width="16px" Visible="False" />        
                    
                    </ContentTemplate>
                        
              </asp:UpdatePanel>              
                
                
            </td>
            </tr>
    
            <tr>
            <td style="height: 9px">
              
              
            </td>
            </tr>
    
            </table>

<asp:UpdatePanel ID="upGrilla" runat="server">
<ContentTemplate> 

        <dx:ASPxRoundPanel ID="rpExcelCargados" runat="server" Width="500px" 
            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
            CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
            GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
            HeaderText="Excel Cargados" 
            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
            <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                PaddingTop="10px" />
            <HeaderStyle>
            <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                PaddingTop="3px" />
            </HeaderStyle>
            <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
    <dx:ASPxGridView ID="dgvExcelCargados" runat="server" 
        AutoGenerateColumns="False" ClientInstanceName="dgvExcelCargados" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" KeyFieldName="ID" Width="480px" 
        OnRowDeleting="dgvExcelCargados_RowDeleting">
        <Columns>
            <dx:GridViewCommandColumn Caption="Acciones" ShowInCustomizationForm="True" 
                VisibleIndex="0" Width="70px">
                <DeleteButton Text="Eliminar" Visible="True">
                </DeleteButton>
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </dx:GridViewCommandColumn>
            <dx:GridViewDataTextColumn Caption="Nº" FieldName="ID" 
                ShowInCustomizationForm="True" VisibleIndex="1" Width="50px">
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Archivo" FieldName="NombreArchivo" 
                ShowInCustomizationForm="True" VisibleIndex="2">
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </dx:GridViewDataTextColumn>
        </Columns>
        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
            </LoadingPanelOnStatusBar>
            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
            </LoadingPanel>
        </Images>
        <ImagesFilterControl>
            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
            </LoadingPanel>
        </ImagesFilterControl>
        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
            CssPostfix="Office2010Blue">
            <Header ImageSpacing="5px" SortingImageSpacing="5px">
            </Header>
            <LoadingPanel ImageSpacing="5px">
            </LoadingPanel>
        </Styles>
        <StylesPager>
            <PageNumber ForeColor="#3E4846">
            </PageNumber>
            <Summary ForeColor="#1E395B">
            </Summary>
        </StylesPager>
        <StylesEditors ButtonEditCellSpacing="0">
            <ProgressBar Height="21px">
            </ProgressBar>
        </StylesEditors>
    </dx:ASPxGridView>
                </dx:PanelContent>
</PanelCollection>
        </dx:ASPxRoundPanel>

</ContentTemplate>
</asp:UpdatePanel>


    <dx:ASPxPopupControl ID="PopupFormarto" runat="server" AllowDragging="True" 
                    ClientInstanceName="PopupFormarto" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        Width="300px" EnableHotTrack="False">
                
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl6" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel6" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent5" runat="server">
                        <table>
                        <tr>
                        <td colspan="2">
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Seleccione el formato correcto (.xlsx)!
                        
                        
                        
                        </td>
                        
                        </tr>
                            <tr>
                                <td colspan="2" style="text-align: center">
                                    &nbsp;</td>
                            </tr>
                        <tr>
                        <td>
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton5" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	PopupFormarto.Hide();
}" />
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>

                </dx:ASPxPopupControl>

    <dx:ASPxPopupControl ID="PopupSeleccione" runat="server" AllowDragging="True" 
                    ClientInstanceName="PopupSeleccione" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        Width="300px" EnableHotTrack="False">
                
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                
                           <LoadingPanelStyle ImageSpacing="5px">
                           </LoadingPanelStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent3" runat="server">
                        <table>
                        <tr>
                        <td colspan="2">
                        
                        
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Seleccione un archivo excel!
                        
                        
                        
                        </td>
                        
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        <tr>
                        <td>
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	PopupSeleccione.Hide();
}" />
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>

                </dx:ASPxPopupControl>

    <dx:ASPxPopupControl ID="popupMensaje" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupMensaje" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        Width="300px" EnableHotTrack="False">
                
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel1" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent1" runat="server">
                        <table width="100%">
                        <tr>
                        <td align="center">
                        
                        
                        
                            <asp:Label ID="lblMensaje" runat="server"></asp:Label>
                        
                        
                        
                        </td>
                        
                        </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        <tr>
                        <td align="center">
                        
                            <dx:ASPxButton ID="ASPxButton2" runat="server" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                Width="10px" OnClick="ASPxButton2_Click">
                                <ClientSideEvents Click="function(s, e) {
	popupMensaje.Hide();
}" />
                            </dx:ASPxButton>
                            </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>

                </dx:ASPxPopupControl>

        <br />

        <br />


        <dx:ASPxPopupControl ID="pcCargarExcel" runat="server" 
            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
            EnableHotTrack="False" HeaderText="Importar Archivo de Excel" 
            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
            AllowResize="True" ClientInstanceName="pcCargarExcel" 
            CloseAction="CloseButton" Modal="True" PopupHorizontalAlign="WindowCenter" 
            PopupVerticalAlign="WindowCenter" Width="400px" ShowCloseButton="False">
            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
            </LoadingPanelImage>
            <HeaderStyle>
            <Paddings PaddingLeft="7px" />
            </HeaderStyle>
            <LoadingPanelStyle ImageSpacing="5px">
            </LoadingPanelStyle>
            <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">

<table width="100%">
        <tr>
            <td colspan="2">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                         
                       

                           
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        
                        <td>
                           <dx:ASPxUploadControl ID="ASPxUploadControl1" runat="server" ClientInstanceName="uploader20"
                                                        Width="300px" 
                                NullText="Click here to browse files..." UploadMode="Advanced"
                                                        
                                OnFileUploadComplete="ASPxUploadControl1_FileUploadComplete" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <AdvancedModeSettings EnableMultiSelect="True" />
                                                        <ClientSideEvents FileUploadStart="function(s, e) { Uploader_OnFileUploadStart(); }"
                                                            FileUploadComplete="function(s, e) { Uploader_OnFileUploadComplete(e); }" FilesUploadComplete="function(s, e) { Uploader_OnFilesUploadComplete(e); }"
                                                            UploadingProgressChanged="function(s, e) { ProgressChanged(e); }" TextChanged="function(s, e) { UpdateUploadButton(); }" />
                                                        <ValidationSettings MaxFileSize="614400000" AllowedFileExtensions=".xls,.xlsx">
                                                        </ValidationSettings>
                                                    </dx:ASPxUploadControl></td>
                        <td>
                        
                            &nbsp;</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
          
            <td align="right">
                <dx:ASPxButton ID="ASPxButton3" runat="server" AutoPostBack="False" ClientInstanceName="btnUpload3" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Cargar" 
                    Width="100px">
                    <ClientSideEvents Click="function(s, e) { 
uploader20.Upload();
}" />
                </dx:ASPxButton>
            </td>
            <td align="left">
                <dx:ASPxButton ID="ASPxButton4" runat="server" AutoPostBack="False" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Cancelar">
                    <ClientSideEvents Click="function(s, e) {
	pcCargarExcel.Hide();
}" />
                </dx:ASPxButton>
            </td>
        </tr>
        <tr>
            <td colspan="2">
           
           <dx:ASPxButton ID="ASPxButton6" runat="server" OnClick="btnDetalle_Click" ClientVisible="false"
                                            ClientInstanceName="btnVerDetalle" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Width="1px">
                                        </dx:ASPxButton>
           
           </td>
        </tr>
    </table>

</dx:PopupControlContentControl>
</ContentCollection>
        </dx:ASPxPopupControl>

        <br />



        <dx:ASPxPopupControl ID="ASPxPopupControl1" runat="server" ClientInstanceName="pcProgress"
                                                        Modal="True" HeaderText="Cargando" PopupAnimationType="None" CloseAction="None"
                                                        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" Width="460px"
                                                        AllowDragging="true" ShowPageScrollbarWhenModal="True" ShowCloseButton="False"
                                                        ShowFooter="True" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" CssPostfix="Office2003Blue"
                                                        EnableHotTrack="False" 
                                                        SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                                                        <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <HeaderStyle>
                                                            <Paddings PaddingRight="6px" />
                                                        </HeaderStyle>
                                                        <FooterTemplate>
                                                            <dx:ASPxButton ID="btnCancel" runat="server" AutoPostBack="False" Text="Cancel" ClientInstanceName="btnCancel"
                                                                Width="100px" Style="float: right">
                                                                <ClientSideEvents Click="function(s, e) { uploader.Cancel(); }" />
                                                            </dx:ASPxButton>
                                                        </FooterTemplate>
                                                        <ContentCollection>
                                                            <dx:PopupControlContentControl ID="PopupControlContentControl4" runat="server" SupportsDisabledAttribute="True">
                                                                <table style="width: 100%;">
                                                                    <tr>
                                                                        <td style="width: 100%;">
                                                                            <div style="overflow: hidden; width: 280px;">
                                                                                <dx:ASPxLabel ID="lblFileName" runat="server" ClientInstanceName="lblFileName" Text=""
                                                                                    Wrap="False">
                                                                                </dx:ASPxLabel>
                                                                            </div>
                                                                        </td>
                                                                        <td class="NoWrap" style="text-align: right">
                                                                            <dx:ASPxLabel ID="lblCurrentUploadedFileLength" runat="server" ClientInstanceName="lblCurrentUploadedFileLength"
                                                                                Text="" Wrap="False">
                                                                            </dx:ASPxLabel>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" class="TopPadding">
                                                                            <dx:ASPxProgressBar ID="ASPxProgressBar1" runat="server" Height="21px" Width="100%"
                                                                                ClientInstanceName="progress1">
                                                                            </dx:ASPxProgressBar>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2">
                                                                            <div class="Spacer" style="height: 12px;">
                                                                            </div>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td style="width: 100%;">
                                                                            <dx:ASPxLabel ID="lblUploadedFiles" runat="server" ClientInstanceName="lblUploadedFiles"
                                                                                Text="" Wrap="False">
                                                                            </dx:ASPxLabel>
                                                                        </td>
                                                                        <td class="NoWrap" style="text-align: right">
                                                                            <dx:ASPxLabel ID="lblUploadedFileLength" runat="server" ClientInstanceName="lblUploadedFileLength"
                                                                                Text="" Wrap="False">
                                                                            </dx:ASPxLabel>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" class="TopPadding">
                                                                            <dx:ASPxProgressBar ID="ASPxProgressBar2" runat="server" CssClass="BottomMargin"
                                                                                Height="21px" Width="100%" ClientInstanceName="progress2">
                                                                            </dx:ASPxProgressBar>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2">
                                                                            <div class="Spacer" style="height: 12px;">
                                                                            </div>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2">
                                                                            <dx:ASPxLabel ID="lblProgressStatus" runat="server" ClientInstanceName="lblProgressStatus"
                                                                                Text="" Wrap="False">
                                                                            </dx:ASPxLabel>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </dx:PopupControlContentControl>
                                                        </ContentCollection>
                                                    </dx:ASPxPopupControl>
                                                    <br />


        <asp:Timer ID="Timer1" runat="server" ontick="Timer1_Tick" Interval="1000">
        </asp:Timer>



 </div>

    


  </asp:Content>
